2022 iThome 鐵人賽
分享至
<script> axios.get('http://localhost:3000/data') .then(function (res) { for (var x in res.data) { $('#chosedata').append($("<option/>", { value: x, text: x })); } } ) .catch(err => { console.log(err.response); }) </script>
IT邦幫忙